const app = getApp()
import {
  HomeIndex
} from 'index-modal.js';
import {
  Config
} from '../../../utils/config.js';
var Function = require("../../../utils/function.js");
var index = new HomeIndex(); //实例化 首页 对象
Page({
  data: {
    url: Config.Url
  },
  //事件处理函数
  
  onLoad: function (opt) {
    if(opt.id){
      this.fulldiscuss(opt.id);
    }
  },
  fulldiscuss:function(id){
    let that=this;
    let data={
      id: id
    }
    index.fulldiscuss(data,(res)=>{
      if(res.code==200){
        that.setData({
          discuss_details:res.data
        })
      }
    })
  },
  
})
